package com.ljc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ljc.search.mq.PostMqIndexMessage;
import com.ljc.vo.PostVo;

import java.util.List;

/**
 * @Author: ljc
 * @Date:Created in 19:26 2022/2/23
 */
public interface SearchService {
    IPage search(Page page, String keyword);

    int initESData(List<PostVo> records);

    void createOrUpdateIndex(PostMqIndexMessage message);

    void remove(PostMqIndexMessage message);
}
